<template>
    <el-row :gutter="20">
        <el-col :span="6">
            <div id="carNumDiv" class="el_colDiv">
                <div id="ssv1-main-text" class="nowDiv">实时</div>
                <span class="title">汽车总类目数</span><br>
                <span class="digtal">32</span><br>
                <span class="last-span">当前类目总记录数</span>
            </div>
        </el-col>
        <el-col :span="6">
            <div id="haveRoomDiv" class="el_colDiv">
                <div id="ssv2-main-text" class="nowDiv">实时</div>
                <span class="title">今日新增类目数</span><br>
                <span class="digtal">10</span><br>
                <span class="last-span">当前类目总记录数</span>
            </div>
        </el-col>
        <el-col :span="6">
            <div id="repairNum" class="el_colDiv">
                <div id="ssv3-main-text" class="nowDiv">实时</div>
                <span class="title">商品总数</span><br>
                <span class="digtal">50</span><br>
                <span class="last-span">当前商品总记录数</span>
            </div>
        </el-col>
        <el-col :span="6">
            <div id="emptyRoom" class="el_colDiv">
                <div id="ssv4-main-text" class="nowDiv">实时</div>
                <span class="title">今日新增商品数量</span><br>
                <span class="digtal">20</span><br>
                <span class="last-span">当前商品总记录数</span>
            </div>
        </el-col>
    </el-row>
    <el-row class="row-bg" justify="space-between">
        <el-col :span="12">
            <!--日历-->
            <el-calendar v-model="value" style="height: 200px;" />
        </el-col>
        <el-col :span="12">
            <Tianqi></Tianqi> 
        </el-col>

    </el-row>
</template>
<script lang="ts" setup>
import { ref } from 'vue'
import Tianqi from '@/components/Tianqi.vue';
const value = ref(new Date())
</script>
<style scoped>
.el_colDiv{
    margin: 3px auto;
    max-width: 340px;
    min-width: 200px;
    overflow: hidden; /* 溢出隐藏 */
    height: 80px;
    border-radius: 6px;
    background-color: black;
    color: #fff;
    padding-left: 10px;
    padding-top: 10px;
    position: relative;
}
.nowDiv{
    position: absolute;
    top: 5px;
    left: 82%;
    /* right: 15%; */
    width: 38px;
    height: 20px;
    font-size: 17px;
    display: flex;
    justify-self: center;
    align-items: center;
    border-radius: 5px;
}
.title{
    font-size: 16px;
}
.digtal{
    font-size: 20px;
    font-weight: 700;
    line-height: normal;
    margin-left: 8px;
}
.last-span{
    font-size: 12px;
}
#stuNumDiv {
background-color: #2e4057;
}

#ssv1-main-text {
background-color: #1398ff;
}

#haveRoomDiv {
background-color: #1398ff;
}

#ssv2-main-text { background-color: #2e4057;
}

#repairNum {
background-color: #008789;
}

#ssv3-main-text { background-color: #ffb400;
}

#emptyRoom {
background-color: #ffb400;
}

#ssv4-main-text { background-color: #008789;
}
</style>